package com.zit.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Teacher entity. @author MyEclipse Persistence Tools
 */

public class Teacher implements java.io.Serializable {

	// Fields

	private Integer id;
	private Dept dept;
	private String name;
	private Date createTime = new Date();
	private Integer isDelete = 0;
	private String remark;
	private String loginName;
	private String password;
	private Integer isPro;
	private Set classesesForHeadTeacher = new HashSet(0);
	private Set classesesForProTeacher = new HashSet(0);

	// Constructors

	/** default constructor */
	public Teacher() {
	}

	/** minimal constructor */
	public Teacher(String name, String loginName, String password, Integer isPro) {
		this.name = name;
		this.loginName = loginName;
		this.password = password;
		this.isPro = isPro;
	}
	
	/** minimal constructor */
	public Teacher(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public Teacher(Dept dept, String name, Date createTime, Integer isDelete,
			String remark, String loginName, String password, Integer isPro,
			Set classesesForHeadTeacher, Set classesesForProTeacher) {
		this.dept = dept;
		this.name = name;
		this.createTime = createTime;
		this.isDelete = isDelete;
		this.remark = remark;
		this.loginName = loginName;
		this.password = password;
		this.isPro = isPro;
		this.classesesForHeadTeacher = classesesForHeadTeacher;
		this.classesesForProTeacher = classesesForProTeacher;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Dept getDept() {
		return this.dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getIsPro() {
		return this.isPro;
	}

	public void setIsPro(Integer isPro) {
		this.isPro = isPro;
	}

	public Set getClassesesForHeadTeacher() {
		return this.classesesForHeadTeacher;
	}

	public void setClassesesForHeadTeacher(Set classesesForHeadTeacher) {
		this.classesesForHeadTeacher = classesesForHeadTeacher;
	}

	public Set getClassesesForProTeacher() {
		return this.classesesForProTeacher;
	}

	public void setClassesesForProTeacher(Set classesesForProTeacher) {
		this.classesesForProTeacher = classesesForProTeacher;
	}

}